<?php

namespace app\home\validate;
use think\Validate;

class Mail extends Validate
{
    protected $rule = [
        'types'         => 'require',
        'content'       => 'require|chsDash'
    ];

    protected $message = [
        'types.require'         => '请选择反馈类型',
        'content.require'       => '请输入建议内容',
        'content.chsDash'       => '建议内容不能有特殊字符'
    ];
}